<html>
  <head>
    <title>Add Employee</title>
    <meta name="layout" content="main" />
  </head>
  <body>
    <h1>Add Employee</h1>
  <g:form controller ="user" action="save" >
    <div class="dialog">
      <table>
        <tbody>

          <tr class="prop">
            <td valign="top" class="name">
              <label for="name">Name:</label>
            </td>
            <td valign="top" class="value ${hasErrors(bean:userInstance,field:'name','errors')}">
              <input type="text" maxlength="20" id="name" name="name" value="${fieldValue(bean:userInstance,field:'name')}"/>
            </td>
          </tr>

          <tr class="prop">
            <td valign="top" class="password">
              <label for="description">Password:</label>
            </td>
            <td valign="top" class="value ${hasErrors(bean:userInstance,field:'password','errors')}">
              <input type="Password" id="password" name="password" value="${fieldValue(bean:userInstance,field:'password')}"/>
            </td>
          </tr>

          <tr class="prop">
            <td valign="top" class="workplace">
              <label for="workplace">Workplace:</label>
            </td>
            <td valign="top" class="value ${hasErrors(bean:userInstance,field:'workplace','errors')}">
              <input type="text" id="workplace" name="workplace" value="${fieldValue(bean:userInstance,field:'workplace')}"/>
            </td>
          </tr>

          <tr class="prop">
            <td valign="top" class="cellphone">
              <label for="cellphone">Cellphone:</label>
            </td>
            <td valign="top" class="value ${hasErrors(bean:userInstance,field:'cellphone','errors')}">
              <input type="text" id="cellphone" name="cellphone" value="${fieldValue(bean:userInstance,field:'cellphone')}"/>
            </td>
          </tr>



        </tbody>
      </table>
    </div>
    <div class="buttons">
      <span class="button"><input class="save" type="submit" value="Add" /></span>
    </div>
  </g:form>
</body>
</html>
